#include "DebugUtilities.h"
#include <iostream>
#include <sstream>
using namespace std;

#ifdef DEBUG_OS
		void DebugUtilities::assert( bool t , char* msg /*=NULL*/, char* const errorMsg /*= NULL*/)const
		{
			cout << msg;

			if(!t)
			{
				cout << "***************assert errror*****************\n" << msg;
				cout << "in " << (*this);
				informError(msg);
			}
		}

		void DebugUtilities::staticAssert( bool t , char* msg /*=NULL*/, char* const errorMsg /*= NULL*/)
		{
			cout << msg;

			if(!t)
			{
				cout << "***************static assert errror*****************\n" << msg;
				staticInformError(msg);
			}
		}
#endif

		void DebugUtilities::must( bool t, char* const msg /*= ""*/, char* const errorMsg /*= ""*/ ) const
		{
			cout << msg;

			if(!t)
			{
				cout << "***************must errror*****************\n" << msg;
				cout << "in " << (*this);
				informError(msg);
			}
		}
